package com.fzj.ssh.service.impl;

import com.fzj.ssh.dao.UserDao;
import com.fzj.ssh.domain.SysUser;
import com.fzj.ssh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * Created by j on 2016/5/31.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    @Autowired
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public Serializable saveUser(SysUser user) {
        return userDao.saveUser(user);
    }

    @Override
    public SysUser getUser(String userId) {
        return userDao.getUser(userId);
    }
}
